import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { WelcomeComponent } from './pages/welcome/welcome.component';
import { TreasureComponent } from './pages/treasure/treasure.component';
import { WeaponComponent } from './pages/weapon/weapon.component';
import { ArmorComponent } from './pages/armor/armor.component';
import { TalismanComponent } from './pages/talisman/talisman.component';
import { SoulComponent } from './pages/soul/soul.component';

const routes: Routes = [
  {path: '', pathMatch: 'full', redirectTo: '/weapon'},
  //修改基础信息
  {path: 'welcome', component: WelcomeComponent},
  //整理天材地宝
  {path: 'treasure', component: TreasureComponent},
  //整理武器
  {path: 'weapon', component: WeaponComponent},
  //整理战衣
  {path: 'armor', component: ArmorComponent},
  //整理法宝
  {path: 'talisman', component: TalismanComponent},
  //整理斗魂
  {path: 'soul', component: SoulComponent},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {
}
